package com.itcast;

import com.itcast.config.SpringConfig;
import com.itcast.dao.AccountDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext ctx=new AnnotationConfigApplicationContext(SpringConfig.class);
        AccountDao accountDao = ctx.getBean(AccountDao.class);
        accountDao.update();

    }
}
